const express = require('express')
const router = express.Router()
const usartController = require("../controllers/usartController");

// 初始化串口通信 com8 115200
router.post('/init', usartController.initializeSerialPort);

// 发送数据到STM32
router.post("/send", usartController.sendDataToSTM32);

// 关闭串口
router.get("/close", usartController.close)

module.exports = router;